package com.myteam.fugaocrm.task;

/**
 * 任务提醒
 * @author BZX
 *
 */
public class RemindTask implements Runnable {
	RemindLog remindLog = new RemindLog();
	RemindPafrol remindPafrol = new RemindPafrol();
	RemindPartnerPay remindPartnerPay = new RemindPartnerPay();
	RemindContractPay remindContractPay = new RemindContractPay();
	RemindContractBill remindContractBill = new RemindContractBill();
	
	@Override
	public void run() {
		while(true) {
			try {
				remindLog.work();
				remindPafrol.work();
				remindPartnerPay.work();
				remindContractPay.work();
				remindContractBill.work();
			} catch (Exception e) {
				e.printStackTrace();
			} finally {
	          	try {
					Thread.sleep(10 * 1000); //间隔10秒  
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}
		}
    }

}
